<?php
class CPregMatch
{
	private $str;
	
	public function __construct($str)
		{
			$this->str = $str;
		}
	public function Display()
		{
			echo $this->str;
		}
	public function FindNumber()
	{
		$result = preg_match('/[0-9]/', $this->str);
		if($result)
			return true;
		return false;
		
	}
	public function FindStr()
	{
		$result = preg_match('/[a-zA-z]/', $this->str);
		if($result)
			return true;
		return false;
	}
}
?>